package com.xyq.common.core.enums;

import lombok.Getter;

// 代码运行状态
@Getter
public enum CodeRunStatus {
    RUNNING(1 ,"运行中"),
    SUCCEED(2, "运行成功"),
    FAILED(3, "运行失败"),
    NOT_ALL_PASSED(4, "未通过所有用例"),
    UNKNOWN_FAILED(5 , "未知异常,请稍后重试"),
    COMPILE_FAILED(6, "编译失败"),
    OUT_OF_MEMORY(7, "超出空间限制"),
    OUT_OF_TIME(8,"超出时间限制")



    ;


    private Integer value ;
    private String msg ;

    CodeRunStatus(Integer value, String msg) {
        this.value = value;
        this.msg = msg;
    }
}
